#pragma once

#include "ui_createproject.h"

class ProjectCreatorDialog : public QDialog
{
	Ui::CreateProject ui;
public:
	ProjectCreatorDialog( QWidget*parent ) : QDialog( parent ){ ui.setupUi(this); }
	~ProjectCreatorDialog(){}

	int exec()
	{
		ui.nameLineEdit->clear();
		ui.nameLineEdit->setFocus();
		return QDialog::exec();
	}
	std::string projectName() const{ return ui.nameLineEdit->text().toAscii().data(); }
};